package cz.vargagab.domain;

import java.io.Serializable;

/**
 * Class representing the response to an access request to the shared resource
 * @author Gabriel Varga
 *
 */
public class Response implements Serializable {

	private static final long serialVersionUID = -3995379628214510406L;

	private Request requestTorespondTo;
	private boolean ok;
	private ClientRmiNode replyFrom;
	
	public boolean isOk() {
		return ok;
	}
	public void setOk(boolean ok) {
		this.ok = ok;
	}
	public ClientRmiNode getReplyFrom() {
		return replyFrom;
	}
	public void setReplyFrom(ClientRmiNode replyFrom) {
		this.replyFrom = replyFrom;
	}
	
	public Request getRequestTorespondTo() {
		return requestTorespondTo;
	}
	public void setRequestTorespondTo(Request requestTorespondTo) {
		this.requestTorespondTo = requestTorespondTo;
	}
	
	public Response(Request requestTorespondTo, boolean ok,
			ClientRmiNode replyFrom) {
		super();
		this.requestTorespondTo = requestTorespondTo;
		this.ok = ok;
		this.replyFrom = replyFrom;
	}
	public Response() {
		super();
	}
	
}
